﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.WindowsAzure;
using Microsoft.WindowsAzure.StorageClient;

using System.Data.Services.Client;

namespace Net.SyntaxC4.WindowsAzure.EmailQueue.BLL
{
    public class EmailTable : TableServiceContext
    {
        public EmailTable()
            : base(CloudStorageAccount.DevelopmentStorageAccount.TableEndpoint.ToString(),
                   CloudStorageAccount.DevelopmentStorageAccount.Credentials)
        {

        }

        public EmailTable(string tableStorageEndpoint, StorageCredentials credentials) :
            base(tableStorageEndpoint, credentials) { }

        public DataServiceQuery<Email> MailServers
        {
            get { return CreateQuery<Email>("Emails"); }
        }
    }
}
